package com.hy.service1.service;

import com.hy.service1.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public String getUserNameById(Integer id) {
        if (id == 1) return "小米";
        else return "华为";
    }
}
